package action.stragy;

/**
 * Created by hmily on 2017/9/7.
 */
public abstract class AbstractCaculator {

    public int[] parse(String exp,String opt){

        String[] split = exp.split(opt);
        int[] ints = new int[split.length];
        for (int i =0;i<split.length;i++){
            ints[i]= Integer.valueOf(split[i]);
        }

        return ints;
    }
}
